import { createRouter, createWebHistory } from 'vue-router'
const routerHistory = createWebHistory()

// 固定页面
import login from '../components/login.vue'
import index from '../components/index.vue'

const routes=[
    {
        path: '/login',
        name: '登录',
        component: login,
    },{
        path: '/index',
        name: '主页面',
        component: index,
    },
]

const router = createRouter({
    history: routerHistory,
    routes
})

export default router